package com.iflytek.uc.authentication.handler.impl;

import org.apache.commons.lang.StringUtils;

import com.iflytek.uc.authentication.handler.AuthenticationHandler;
import com.iflytek.uc.authentication.handler.PasswordEncoder;
import com.iflytek.uc.domain.Account;

public class SimpleTestAuthenticationHandler implements AuthenticationHandler {

	public void setPasswordEncoder(PasswordEncoder passwordEncoder) {
	}

	public boolean authenticate(Account account, String password) {
		return StringUtils.equals(account.getName(), password);
	}

}
